package com.ls.fw.data.bean;


/**
 * 排序函数
 * Most Java Math functions are now supported</br>
 * @author ls</br>
 * 2014年11月24日下午12:36:14</br>
 * @see java.lang.Math.*
 */
public enum SortFunctions {
	  COUNT("COUNT")
	 ,SUM("SUM")
	 ,AVG("AVG")
	 ,UNKWON("UNKWON");
	 
	private String name = "";
	
	private SortFunctions(String name){
		  this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	 
	public static SortFunctions get(String name){
		SortFunctions[]  afs = SortFunctions.values();
		for (SortFunctions aFunctions : afs) {
			if(aFunctions.getName().equals(name)){
				return aFunctions;
			}
		}
		return UNKWON;
	}
	 
}
